package cn.com.yx.ms.persistence;

import cn.com.yx.ms.application.web.ApiQueryBase;
import cn.com.yx.ms.domain.dbmodel.DevCatalog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DevCatalogMapper {
    int deleteByPrimaryKey(String guid);

    int insert(DevCatalog record);

    int insertSelective(DevCatalog record);

    DevCatalog selectByPrimaryKey(String guid);

    int updateByPrimaryKeySelective(DevCatalog record);

    int updateByPrimaryKey(DevCatalog record);

    String getMaxNumber(@Param("parentid") String parentid);

    List<DevCatalog> find(ApiQueryBase query);

    int selectCountByCatalogName(@Param("parentid") String parentid, @Param("catalogname") String catalogname);

    List<DevCatalog> selectChildByParentId(@Param("parentid")String parentid);
}